<?php

//php8.1开始支持final 常量
class Foo{
     final public const X="foo";

}
class Bar extends Foo{

     public const X= "bar"; 
}

//#echo Bar::X;